<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Food Facts Web</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/page.css">
    <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/page.js"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->

    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->

    <!--[if lt IE 9]>

        <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>

        <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>

    <![endif]-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
</head>
<body>
<div class="container">
<div class="page-header">
  <h1>Food Facts Web</h1>
</div>
<div id="container" style="min-width:800px;height:400px"></div>
<button id="test">test</button>
</div>
<script type="text/javascript">
    $(function () { 
    $('#test').click(function(){
            $('#container').highcharts({                  //图表展示容器，与 div 的 id 保持一致
                chart: {
                    type: 'bar'                           //指定图表的类型，默认是折线图（line）
                },
                title: {
                    text: '我的第一个图表'                 //指定图表标题
                },
                xAxis: {
                    categories: ['苹果', '香蕉', '橙子']   //指定x轴分组
                },
                yAxis: {
                    title: {
                        text: 'something'                 //指定y轴的标题
                    }
                },
                series: [{                                 //指定数据列
                    name: '小明',                          //数据列名
                    data: [1, 0, 4]                        //数据
                }, {
                    name: '小红',
                    data: [5, 7, 3]
                }]
        });
    });
});
</script>
</body>
</html>